@extends('bootstrap-modal-layout')

@if($script_blade = 'user/create' )@endif

@section('title') 添加新用户 @endsection
@section('body')
    <form action="{{ url('admin/user') }}" method="post" class="form-horizontal" id="ajaxForm">
        <input type="hidden" name="type" value="mobile"/>
        <input type="hidden" name="checkfield" value="{{ url('auth/register/checkfield') }}"/>
        {!! csrf_field() !!}
        <div class="row form-group">
            <label for="mobile" class="col-md-2 control-label">手机号</label>
            <div class="col-md-7 controls">
                <input type="text" name="mobile" id="mobile" class="form-control" placeholder="手机号将作为登录账号"/>
            </div>
        </div>
        <div class="row form-group">
            <label for="email" class="col-md-2 control-label">邮箱</label>

            <div class="col-md-7 controls">
                <input type="text" name="email" id="email" class="form-control"/>
            </div>
        </div>
        <div class="row form-group">
            <label for="name" class="col-md-2 control-label">昵称</label>
            <div class="col-md-7 controls">
                <input type="text" name="name" id="name" class="form-control"/>
            </div>
        </div>
        <div class="row form-group">
            <label for="password" class="col-md-2 control-label">密码</label>
            <div class="col-md-7 controls">
                <input type="password" name="password" id="password" class="form-control" placeholder="密码不能少于6位"/>
            </div>
        </div>
        @include('submit-btn')
    </form>
@endsection
